go/types.Interface.methods (field)
19 uses
go/types (current package)
infer.go#L754: for _, m := range t.methods {
interface.go#L19: methods []*Func // ordered list of explicitly declared methods
interface.go#L69: typ.methods = methods
interface.go#L94: func (t *Interface) NumExplicitMethods() int { return len(t.methods) }
interface.go#L98: func (t *Interface) ExplicitMethod(i int) *Func { return t.methods[i] }
interface.go#L210: ityp.methods = append(ityp.methods, m)
interface.go#L217: if len(ityp.methods) == 0 && len(ityp.embeddeds) == 0 {
interface.go#L224: sortMethods(ityp.methods)
named.go#L384: if methods, copied := replaceRecvType(iface.methods, n.orig, n); copied {
named.go#L396: iface.methods = methods
subst.go#L160: methods, mcopied := subst.funcList(t.methods)
subst.go#L180: iface.methods, _ = replaceRecvType(methods, t, iface)
typeset.go#L176: if !pos.IsValid() && len(ityp.methods) > 0 {
typeset.go#L177: pos = ityp.methods[0].pos
typeset.go#L255: for _, m := range ityp.methods {
typestring.go#L219: if len(t.methods) == 0 && len(t.embeddeds) == 1 {
typestring.go#L232: for _, m := range t.methods {
universe.go#L101: ityp := &Interface{obj: obj, methods: []*Func{err}, complete: true}